﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DtoFw.Interface;
using SceneEvidenceAPISDK;

namespace SceneEvidenceAPISDK.Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IUser userAPI = new ApiUser();
           var login= userAPI.Login(new DtoFw.Query.MainUserLoginQuery()
            {
                password = "123456",
                username = "admin"
            });
            if (login.Success)
                MessageBox.Show("成功");
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ApiUser userAPI = new ApiUser();
           var result= userAPI.QueryUserList(new DtoFw.Query.UserInfoQuery() { });
        }
    }
}
